package com.atguigu.jxc.service.impl;

import com.atguigu.jxc.dao.UnitDao;
import com.atguigu.jxc.entity.Unit;
import com.atguigu.jxc.service.UnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

/**
 * ClassName: UnitServiceImpl
 * Description:
 * Date: 2022/1/16 0:30
 *
 * @version:
 * @since JDK 1.8
 */
@Service
public class UnitServiceImpl implements UnitService {



    @Autowired
    private UnitDao unitDao;
    @Override
    public Map<String, Object> findUnit() {
        List<Unit> unitList = unitDao.findUnit();
        HashMap<String, Object> map = new HashMap<>();
        map.put("rows",unitList);

        return map;
    }
}
